package com.etc.dao;

import com.etc.entity.Attractions;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * cyf
 * @author Administrator
 *
 */
@Repository(value="attrationsdao")
@Mapper
public interface AttractionsMapper {
	//根据id删除景点
    int deleteByPrimaryKey(Integer attId);
  //添加景点
    int insert(Attractions Attractions);
  //添加景点
    int insertSelective(Attractions Attractions);
  //根据id查询景点
    Attractions selectByPrimaryKey(Integer attId);
  //查询所有景点
    List<Attractions> selectAll();
  //根据字段动态修改景点
    int updateByPrimaryKeySelective(Attractions Attractions);
  //根据id修改景点信息
    int updateByPrimaryKey(Attractions Attractions);
    //分页+模糊查询layui
    List<Attractions> selectByPage(int start, int pageSize, String context);
    //查询记录总数
    int selectCountByLike(String context);
    
}